package com.joker.orange.domain.bo;

import com.joker.common.core.domain.BaseEntity;
import com.joker.common.core.validate.AddGroup;
import com.joker.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户信息业务对象 t_user_info
 *
 * @author Joker
 * @date 2024-06-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class UserInfoBo extends BaseEntity {

    /**
     * 唯一标识
     */
    @NotNull(message = "唯一标识不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nickName;

    /**
     * 账户
     */
    @NotBlank(message = "账户不能为空", groups = { AddGroup.class, EditGroup.class })
    private String account;

    /**
     * 设备号
     */
    @NotBlank(message = "设备号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceId;

    /**
     * 登陆密码
     */
    @NotBlank(message = "登陆密码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String password;

    /**
     * 头像地址
     */
    @NotBlank(message = "头像地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String avatar;

    /**
     * 钻石
     */
    @NotNull(message = "钻石不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal diamond;

    /**
     * 是否会员（0-是、1-否）
     */
    @NotBlank(message = "是否会员（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isMember;

    /**
     * 是否网格会员（0-是、1-否）
     */
    @NotBlank(message = "是否网格会员（0-是、1-否）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isGridMember;

    /**
     * 会员级别（天会员、月会员、年度会员、永久会员）
     */
    @NotBlank(message = "会员级别（天会员、月会员、年度会员、永久会员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberLevel;

    /**
     * 会员到期时间
     */
    @NotBlank(message = "会员到期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String memberExpireTime;

    /**
     * 网格会员级别（天会员、月会员、年度会员、永久会员）
     */
    @NotBlank(message = "网格会员级别（天会员、月会员、年度会员、永久会员）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gridMemberLevel;

    /**
     * 网格会员到期时间
     */
    @NotBlank(message = "网格会员到期时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gridMemberExpireTime;

    /**
     * 推广人ID
     */
    @NotBlank(message = "推广人ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spreadId;

    /**
     * 上级类型（0-用户、1-平台、2-代理）
     */
    private String superiorType;

    /**
     * 短视频赠送次数
     */
    @NotBlank(message = "短视频赠送次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String shortVideoCount;

    /**
     * 长视频赠送次数
     */
    @NotBlank(message = "长视频赠送次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String longVideoCount;

    /**
     * 帐号状态（0正常 1停用）
     */
    @NotBlank(message = "帐号状态（0正常 1停用）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;

    /**
     * 最后登录IP
     */
    @NotBlank(message = "最后登录IP不能为空", groups = { AddGroup.class, EditGroup.class })
    private String loginIp;

    /**
     * 最后登录时间
     */
    @NotNull(message = "最后登录时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date loginDate;

    /**
     * 备注
     */
    private String remark;


}
